import instance from '@/utils/request'
//获取文章列表
export const getNewsList = (data) => {
  return instance.get('/getNews', {
    params: data
  })
}

//获取文章详情
export const getNewsDetail = (id) => {
  return instance.get(`/getNews/${id}`)
}
